<?php
   include("./dbconn.php");

   $name = $_GET['name'];
   $tel = $_GET['tel'];
   $pw = $_GET['pw'];

   $sql = "insert into platinum_member (username, tel, pw) values('$name', '$tel', '$pw')";

   if($conn->query($sql) === true){
      $result["code"] = 0;
   }else{
      $result["code"] = 1;
   }
   echo json_encode($result);
?>
